# This script should save a logfile with frame_stats for  given input video. The logfile will be read by dist_frames.py 

INPUTFILE="$1" # identify inputfile
LOGFILE="$2" # name logfile

ffprobe -show_frames "$INPUTFILE" |grep 'pict_type\|pkt_pos\|[FRAME]\|[/FRAME]' > "$LOGFILE"

